package com.fengniu.ejb.business;

import java.util.Map;

import com.fengniu.ejb.entity.CouponItem;
import com.fengniu.ejb.entity.Site2Content;

public interface ICouponBusiness {

	/**
	 * get store coupons
	 * 
	 * @param siteSysId
	 * @param pgno
	 * @param pgsize
	 * @return Map contains List site2ContentList and Long totalCount
	 */
	public Map<String, Object> getCoupons(long siteSysId, int pgno, int pgsize);

	/**
	 * 
	 * @param userSysId
	 * @param storeSysId
	 * @param couponSysId
	 * @param couponIssueId
	 * @param pgno
	 * @param pgsize
	 * @return Map contains List couponItemList, Long totalCount
	 */
	public Map<String, Object> getCouponItems(long userSysId, long storeSysId, long couponSysId, long couponIssueId,
			int pgno, int pgsize);

	/**
	 * represent a coupon item to user
	 * 
	 * @param storeSysId
	 * @param couponSysId
	 * @param userSysId
	 * @param couponItemId
	 * @param couponIssueId
	 * @param comment
	 */
	public CouponItem representCouponItem(long storeSysId, long couponSysId, long userSysId, String couponItemId,
			long couponIssueId, String comment);

	/**
	 * 
	 * @param contentSysId
	 * @param storeSiteSysId
	 * @return
	 */
	public Site2Content findCoupon(long contentSysId, long storeSiteSysId);

	public CouponItem updateCouponItemBonusNumber(long userSysId, CouponItem couponItem);

	public Site2Content findCouponStoreByCouponItemSysId(long couponItemSysId);
}
